package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营地交流表对象 c_communication
 * 
 * @author ruoyi
 * @date 2024-12-25
 */
public class Communication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 营地交流id */
    private String communicationId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 文字内容 */
    @Excel(name = "文字内容")
    private String content;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 状态：0显示 1隐藏 */
    @Excel(name = "状态：0显示 1隐藏")
    private String status;

    public void setCommunicationId(String communicationId) 
    {
        this.communicationId = communicationId;
    }

    public String getCommunicationId() 
    {
        return communicationId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("communicationId", getCommunicationId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("time", getTime())
            .append("status", getStatus())
            .toString();
    }
}
